!function (e) {
  function t(i) {
    if (a[i]) return a[i].exports;
    var n = a[i] = {i: i, l: !1, exports: {}};
    return e[i].call(n.exports, n, n.exports, t), n.l = !0, n.exports
  }

  var a = {};
  t.m = e, t.c = a, t.d = function (e, a, i) {
    t.o(e, a) || Object.defineProperty(e, a, {configurable: !1, enumerable: !0, get: i})
  }, t.n = function (e) {
    var a = e && e.__esModule ? function () {
      return e.default
    } : function () {
      return e
    };
    return t.d(a, "a", a), a
  }, t.o = function (e, t) {
    return Object.prototype.hasOwnProperty.call(e, t)
  }, t.p = "", t(t.s = 5)
}([function (e, t, a) {
  "use strict";

  function i(e) {
    return e && e.__esModule ? e : {default: e}
  }

  var n = a(7), o = i(n), l = a(4), d = i(l);
  e.exports = {
    user: {
      appflag: void 0,
      version: "",
      build: "",
      city: "",
      token: "",
      phone: "",
      name: "",
      nickname: "",
      tel: "",
      idNum: "",
      isLogin: !1,
      isReal: !1,
      longitude: "",
      latitude: "",
      location: "",
      pushToken: "",
      notice: !1,
      logo: "",
      sex: "",
      realname: "realname",
      realid: "",
      brithday: "",
      realphone: "",
      noticeState: "",
      deviceToken: "",
      os: "",
      state: "",
      faceRealNameCheck: "0"
    },
    isUseMock: !1,
    initCallback: void 0,
    isCallInit: !1,
    nativeCallbacks: {},
    squareActivedListener: void 0,
    version: function () {
      return this.user.version
    },
    getCityCode: function () {
      return this.user.city
    },
    setInitCallback: function (e) {
      this.initCallback = e
    },
    hasLogin: function () {
      return this.user.isLogin
    },
    hasAuth: function () {
      return this.user.isReal
    },
    hasFace: function () {
      return "1" === this.user.faceRealNameCheck
    },
    setOldUser: function (e) {
      this.user.version = e.version, this.user.build = e.build, this.user.token = e.token, this.user.city = e.citycode, this.user.phone = e.phone, this.user.nickname = e.nickname, this.user.longitude = e.longitude, this.user.latitude = e.latitude, this.user.location = e.location, this.user.pushToken = e.pushToken, this.user.platformCode = e.platformCode, this.user.moduleCode = e.moduleCode, this.user.contentId = e.contentId, this.user.contentCode = e.contentCode, this.user.contentType = e.contentType, this.user.contentName = e.contentName, this.user.state = e.state, this.user.isLogin = "" !== this.user.phone, "" === e.realid ? this.user.isReal = !1 : (this.user.isReal = !0, this.user.name = e.realname, this.user.tel = e.realphone, this.user.idNum = e.realid), this.user.notice = "open" === e.notice, console && console.log("===setOldUser==="), this.notifyCaller()
    },
    setUser: function (e, t) {
      this.user.version = e.version, this.user.city = e.citycode, this.user.state = e.state, this.user.token = e.token, this.user.build = e.build, this.user.appflag = e.appflag, this.user.faceRealNameCheck = e.faceRealNameCheck, this.user.platformCode = e.platformCode, this.user.moduleCode = e.moduleCode, this.user.contentId = e.contentId, this.user.contentCode = e.contentCode, this.user.contentType = e.contentType, this.user.contentName = e.contentName, 0 === e.state ? this.user.isLogin = !1 : 1 === e.state ? this.user.isLogin = !0 : (this.user.isLogin = !0, this.user.isReal = !0), console && console.log("===setUser==="), t || this.notifyCaller()
    },
    setPathUser: function (e) {
      this.user.version = e.version, this.user.city = e.city, this.user.token = e.token, this.user.build = e.build, "2" === e.state && (this.user.isLogin = !0, this.user.isReal = !0), console && console.log("===setPathUser==="), this.notifyCaller()
    },
    notifyCaller: function () {
      this.isCallInit = !0, console && console.log("===JSBridge init completed==="), void 0 !== this.initCallback && (console && console.log("===call init callback==="), this.initCallback(this.user.isLogin)), o.default.init(this.user)
    },
    callNative: function (e, t) {
      console && console.log("callNative type=" + e.type);
      try {
        this.saveNativeCallback(e, t), this.isUseMock ? this.callMockApi(e, t) : this.user.version >= "2.4.4" || this.user.appflag ? this.callNativeApi(e, t) : this.call243NativeApi(e, t)
      } catch (e) {
        console && console.log("callNative=" + e)
      }
    },
    callNativeApi: function (e, t) {
      var a = JSON.stringify(e);
      window.WebViewJavascriptBridge.callHandler("bridgeToNative", a, function (e) {
        "function" == typeof t && t(JSON.parse(e))
      })
    },
    call243NativeApi: function (e, t) {
      var a = this;
      if ("reqdata" === e.type) return void a.handle243Data(e, t);
      var i = JSON.stringify(e);
      window.ICYbridge ? window.ICYbridge.bridgeToNative(i) : window.webkit.messageHandlers.bridgeToNative.postMessage(i)
    },
    callMockApi: function (e, t) {
      var a = this;
      "reqdata" === e.type ? a.handle243Data(e, t) : "open_id" === e.type ? o.default.handleOpenId(e, t) : "open_token" === e.type ? o.default.handleOpenToken(e, t) : "photolib" === e.type || "cam" === e.type ? o.default.handleGallery(e, t) : "openApp" === e.type ? o.default.handleMicroAppWithWebView(e, t) : "openWebView" === e.type ? o.default.handleOpenWebView(e, t) : "cut_avatar" === e.type ? o.default.handleCutAvatar(e, t) : o.default.handleDefault(e, t)
    },
    handle243Data: function (e, t) {
      "realInfo" === e.data.type ? this.handleRealData(e, t) : "baseInfo" === e.data.type ? this.handleBaseData(e, t) : "location" === e.data.type ? this.handleLocationData(e, t) : "phone" === e.data.type ? this.handleTelData(e, t) : "deviceInfo" === e.data.type && this.handleDeviceData(e, t)
    },
    handleRealData: function (e, t) {
      var a = this;
      t({type: e.data.type, reqid: e.reqid, data: {realid: a.user.idNum, realname: a.user.name, realphone: a.user.tel}})
    },
    handleBaseData: function (e, t) {
      var a = this;
      t({
        type: e.data.type,
        reqid: e.reqid,
        data: {
          phone: a.user.tel,
          nickname: a.user.nickname,
          logo: a.user.logo,
          sex: a.user.sex,
          brithday: a.user.brithday
        }
      })
    },
    handleLocationData: function (e, t) {
      var a = this;
      t({
        type: e.data.type,
        reqid: e.reqid,
        data: {status: "1", longitude: a.user.longitude, latitude: a.user.latitude, location: a.user.location}
      })
    },
    handleTelData: function (e, t) {
      var a = this;
      t({type: e.data.type, reqid: e.reqid, data: {phone: a.user.tel}})
    },
    handleDeviceData: function (e, t) {
      var a = this;
      t({
        type: e.data.type,
        reqid: e.reqid,
        data: {noticeState: a.user.noticeState, deviceToken: a.user.deviceToken, os: a.user.os}
      })
    },
    GLOBAL_TYPES: {
      photo: "photolib",
      camera: "cam",
      scanBankCard: "scanBankCard",
      idCardFornt: "idCardFornt",
      idCardDown: "idCardDown",
      squareActived: "squareActived",
      quit: "quit",
      ihealth: "ihealth",
      fetchBLEConnect: "fetchBLEConnect",
      onResume: "onResume",
      cutAvatar: "cut_avatar"
    },
    saveNativeCallback: function (e, t) {
      var a = e.type;
      a === this.GLOBAL_TYPES.photo || a === this.GLOBAL_TYPES.camera ? this.nativeCallbacks[this.GLOBAL_TYPES.photo] = t : a === this.GLOBAL_TYPES.scanBankCard ? this.nativeCallbacks[this.GLOBAL_TYPES.scanBankCard] = t : a === this.GLOBAL_TYPES.idCardFornt || a === this.GLOBAL_TYPES.idCardDown ? this.nativeCallbacks[this.GLOBAL_TYPES.idCardFornt] = t : a === this.GLOBAL_TYPES.ihealth ? e.data.type === this.GLOBAL_TYPES.fetchBLEConnect && (this.nativeCallbacks[this.GLOBAL_TYPES.fetchBLEConnect] = t) : a === this.GLOBAL_TYPES.cutAvatar && (this.nativeCallbacks[this.GLOBAL_TYPES.cutAvatar] = t)
    },
    handleNativeResp: function (e) {
      "image" === e.type ? this.handleImageResp(e) : "scanBankCard" === e.type ? this.handleScanCard4MinSheng(e) : e.type === this.GLOBAL_TYPES.idCardFornt || e.type === this.GLOBAL_TYPES.idCardDown ? this.handleScanCardId(e) : e.type === this.GLOBAL_TYPES.squareActived ? "function" == typeof this.squareActivedListener && this.squareActivedListener() : e.type === this.GLOBAL_TYPES.quit ? (this.user.isLogin = !1, this.user.isReal = !1) : e.type === this.GLOBAL_TYPES.fetchBLEConnect ? this.handleFetchBLEConnect(e) : e.type === this.GLOBAL_TYPES.onResume ? this.handleResume(e) : e.type === this.GLOBAL_TYPES.cutAvatar && this.handleCutAvatar(e)
    },
    handleImageResp: function (e) {
      var t = this.nativeCallbacks[this.GLOBAL_TYPES.photo];
      if (void 0 !== t) {
        var a, i = e.data.img;
        i instanceof Array ? a = i : (a = [], a[0] = i), t(a)
      }
    },
    handleScanCard4MinSheng: function (e) {
      var t = this.nativeCallbacks[this.GLOBAL_TYPES.scanBankCard];
      void 0 !== t && t(e)
    },
    handleScanCardId: function (e) {
      var t = this.nativeCallbacks[this.GLOBAL_TYPES.idCardFornt];
      void 0 !== t && t(e)
    },
    handleFetchBLEConnect: function (e) {
      var t = this.nativeCallbacks[this.GLOBAL_TYPES.fetchBLEConnect];
      void 0 !== t && t(e)
    },
    handleResume: function (e) {
      var t = !0, a = !1, i = void 0;
      try {
        for (var n, o = d.default.resumeList[Symbol.iterator](); !(t = (n = o.next()).done); t = !0) {
          (0, n.value)(e)
        }
      } catch (e) {
        a = !0, i = e
      } finally {
        try {
          !t && o.return && o.return()
        } finally {
          if (a) throw i
        }
      }
    },
    handleCutAvatar: function (e) {
      var t = this.nativeCallbacks[this.GLOBAL_TYPES.cutAvatar];
      if (void 0 !== t) {
        var a, i = e.data.img;
        i instanceof Array ? a = i : (a = [], a[0] = i), t(a)
      }
    }
  }
}, function (e, t, a) {
  "use strict";

  function i(e) {
    return e && e.__esModule ? e : {default: e}
  }

  var n = a(2), o = i(n), l = a(0), d = i(l);
  e.exports = {
    call: function (e, t, a) {
      !a || d.default.version() >= a ? d.default.callNative(e, t) : (console.error("请先升级到" + a + "以上版本"), "function" == typeof t && t({
        error: {
          code: o.default.ERROR_CODE_UPGRADE,
          msg: "请先升级到" + a + "以上版本"
        }
      }))
    }
  }
}, function (e, t, a) {
  "use strict";
  e.exports = {ERROR_CODE_MOCK_NOSUPPORT: "-2", ERROR_CODE_UPGRADE: "10001"}
}, function (e, t, a) {
  "use strict";
  e.exports = {
    isAndroid: function () {
      var e = navigator.userAgent;
      return e.indexOf("Android") > -1 || e.indexOf("Adr") > -1
    }, isIOS: function () {
      return !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
    }
  }
}, function (e, t, a) {
  "use strict";
  e.exports = {resumeList: []}
}, function (e, t, a) {
  "use strict";

  function i(e) {
    return e && e.__esModule ? e : {default: e}
  }

  a(6);
  var n = a(8), o = i(n), l = a(9), d = i(l), r = a(10), u = i(r), s = a(11), c = i(s), f = a(12), p = i(f), h = a(13),
      y = i(h), v = a(14), g = i(v), m = a(15), C = i(m), _ = a(16), b = i(_), N = a(17), w = i(N), k = a(18), L = i(k),
      B = a(19), S = i(B), q = a(20), A = i(q), O = a(21), P = i(O), E = a(22), T = i(E), x = a(23), R = i(x);
  window.objExtend = function (e, t) {
    for (var a in t) t.hasOwnProperty(a) && !e.hasOwnProperty(a) && (e[a] = t[a])
  }, Object && Object.assign ? window.iCityBridge = Object.assign(b.default, w.default, L.default, S.default, A.default, P.default, T.default, o.default, c.default, p.default, u.default, d.default, y.default, g.default, C.default, R.default) : (objExtend(o.default, b.default), objExtend(o.default, w.default), objExtend(o.default, L.default), objExtend(o.default, S.default), objExtend(o.default, A.default), objExtend(o.default, P.default), objExtend(o.default, T.default), objExtend(o.default, c.default), objExtend(o.default, p.default), objExtend(o.default, u.default), objExtend(o.default, d.default), objExtend(o.default, y.default), objExtend(o.default, g.default), objExtend(o.default, C.default), objExtend(o.default, R.default), window.iCityBridge = o.default, window.jsbridge = window.iCityBridge)
}, function (e, t, a) {
  "use strict";
  var i = a(0), n = function (e) {
    return e && e.__esModule ? e : {default: e}
  }(i);
  if (void 0 === window.isInitNativeJSBridge || !1 === window.isInitNativeJSBridge) {
    window.isInitNativeJSBridge = !0, window.hasCallJSBridgeUserInit = !1, window.bridgeToWeb = function (e) {
      var t = JSON.parse(e);
      "user" !== t.type || window.hasCallJSBridgeUserInit ? n.default.handleNativeResp(t) : (console && console.log("===bridgeToWeb user==="), window.hasCallJSBridgeUserInit = !0, n.default.setOldUser(t.data))
    };
    if ("android" == navigator.userAgent.toLowerCase().match(/android/i)) try {
      !function (e) {
        window.WebViewJavascriptBridge ? e(WebViewJavascriptBridge) : document.addEventListener("WebViewJavascriptBridgeReady", function () {
          e(WebViewJavascriptBridge)
        }, !1)
      }(function (e) {
        console && console.log("===connectWebViewJavascriptBridge==="), e.init(function (e, t) {
        }), e.registerHandler("bridgeToWeb", function (e) {
          console && console.log("===android bridge.bridgeToWeb==="), bridgeToWebHandle(e)
        })
      })
    } catch (e) {
    } else !function (e) {
      if (window.WebViewJavascriptBridge) return e(WebViewJavascriptBridge);
      if (window.WVJBCallbacks) return window.WVJBCallbacks.push(e);
      window.WVJBCallbacks = [e];
      var t = document.createElement("iframe");
      t.style.display = "none", t.src = "wvjbscheme://__BRIDGE_LOADED__", document.documentElement.appendChild(t), setTimeout(function () {
        document.documentElement.removeChild(t)
      }, 0)
    }(function (e) {
      e.registerHandler("bridgeToWeb", function (e) {
        console && console.log("===ios bridge.bridgeToWeb==="), bridgeToWebHandle(e)
      })
    });
    window.bridgeToWebHandle = function (e) {
      var t = JSON.parse(e);
      "common" !== t.type || window.hasCallJSBridgeUserInit ? n.default.handleNativeResp(t) : (console && console.log("===bridgeToWeb common==="), window.hasCallJSBridgeUserInit = !0, n.default.setUser(t.data))
    }
  }
}, function (e, t, a) {
  "use strict";
  var i = a(2), n = function (e) {
    return e && e.__esModule ? e : {default: e}
  }(i);
  e.exports = {
    user: {}, init: function (e) {
      this.user = e
    }, handleOpenId: function (e, t) {
      var a = this;
      "function" == typeof t && t({type: e.type, data: {openId: a.user.openId}})
    }, handleOpenToken: function (e, t) {
      var a = this;
      "function" == typeof t && t({openToken: a.user.openToken})
    }, handleGallery: function (e, t) {
      "function" == typeof t && t([])
    }, handleMicroAppWithWebView: function (e) {
      location.href = e.gotoUrl
    }, handleOpenWebView: function (e) {
      location.href = e.url
    }, handleCutAvatar: function (e, t) {
      "function" == typeof t && t([])
    }, handleDefault: function (e, t) {
      "function" == typeof t && t({
        type: e.type,
        error: {code: n.default.ERROR_CODE_MOCK_NOSUPPORT, msg: "暂时不支持mock此接口"}
      })
    }
  }
}, function (e, t, a) {
  "use strict";

  function i(e) {
    return e && e.__esModule ? e : {default: e}
  }

  var n = a(0), o = i(n), l = a(2), d = i(l), r = a(1), u = i(r);
  e.exports = {
    isCloseNative: !1, init: function (e) {
      var t = this;
      if (t.getQueryString("token")) return o.default.setPathUser({
        build: t.getQueryString("build"),
        city: t.getQueryString("city"),
        token: t.getQueryString("token"),
        version: t.getQueryString("version"),
        state: "2"
      }), void e(t.hasLogin());
      var a = sessionStorage.getItem("icity_debug_token"), i = sessionStorage.getItem("icity_debug_version"),
          n = sessionStorage.getItem("icity_debug_citycode");
      return !t.hasLogin() && a && (o.default.user.token = a, o.default.user.isLogin = !0, o.default.user.isReal = !0, o.default.user.version = i, o.default.user.city = n), o.default.isCallInit ? void e(t.hasLogin()) : this.isCloseNative ? void e(t.hasLogin()) : void (this.isICity() ? o.default.setInitCallback(e) : e(t.hasLogin()))
    }, getQueryString: function (e) {
      try {
        var t = new RegExp("(^|&)" + e + "=([^&]*)(&|$)"), a = window.location.search.substr(1).match(t);
        return null != a ? unescape(a[2]) : null
      } catch (e) {
        return null
      }
    }, setNativeCloseState: function (e) {
      this.isCloseNative = e
    }, hasLogin: function () {
      return !!this.isCloseNative || o.default.hasLogin()
    }, hasAuth: function () {
      return !!this.isCloseNative || o.default.hasAuth()
    }, hasFace: function () {
      return !!this.isCloseNative || o.default.hasFace()
    }, login: function (e, t) {
      o.default.callNative({reqid: "", type: "login", data: {callback: e || 0}}, function (e) {
        e.data && o.default.setUser(e.data), "function" == typeof t && t(e)
      })
    }, auth: function (e, t) {
      o.default.callNative({reqid: "", type: "realname", data: {callback: e || 0}}, function (e) {
        e.data && o.default.setUser(e.data), "function" == typeof t && t(e)
      })
    }, authykb: function (e, t) {
      o.default.callNative({reqid: "", type: "auth_ykb", data: {callback: e || 0}}, function (e) {
        e.data && o.default.setUser(e.data), "function" == typeof t && t(e)
      })
    }, face: function (e, t) {
      if (o.default.version() < "3.6.6") return void ("function" == typeof t && t({
        error: {
          code: d.default.ERROR_CODE_UPGRADE,
          msg: "请先升级到3.6.6以上版本"
        }
      }));
      o.default.callNative({reqid: "", type: "face_verification", data: {callback: e || 0}}, function (e) {
        e.data && o.default.setUser(e.data, !0), "function" == typeof t && t(e)
      })
    }, faceUnlock: function (e) {
      o.default.callNative({reqid: "", type: "mulface_verification", data: {}}, function (t) {
        e(t)
      })
    }, anyoneFaceUnlock: function (e, t, a) {
      if (!e || !t) return void console.error("call anyoneFaceUnlock method, lost idCard or name.");
      u.default.call({
        reqid: "",
        type: "mulface_verification",
        data: {idCard: e, name: t, type: "anyoneface_verification"}
      }, a, "4.3.0")
    }, checkPassword: function (e) {
    }, getBase64ImgHeader: function () {
      return "data:image/jpg;base64,"
    }
  }
}, function (e, t, a) {
  "use strict";

  function i(e) {
    return e && e.__esModule ? e : {default: e}
  }

  var n = a(0), o = i(n), l = a(1), d = i(l);
  e.exports = {
    share: function (e, t) {
      o.default.callNative({
        reqid: "",
        type: "share",
        data: {
          id: e.appId ? e.appId : "",
          imageUrl: e.icon,
          url: e.shareUrl,
          title: e.title,
          shareDesc: e.desc,
          description: e.desc,
          extParam: e.extParam
        }
      }, t)
    }, setShareContent: function (e, t) {
      e = e || {}, o.default.callNative({
        reqid: "",
        type: "share_content",
        data: {
          id: e.appId || "",
          imageUrl: e.icon || "",
          url: e.shareUrl || "",
          title: e.title || "",
          shareDesc: e.desc || "",
          extParam: e.extParam
        }
      }, t)
    }, setShareContentWithImg: function (e, t) {
      d.default.call({
        reqid: "",
        type: "multiShare",
        data: {
          sharetype: "1",
          imgshare: e.type || "2",
          id: e.appId || "",
          imageUrl: e.imgdata || "",
          title: e.title || "",
          shareDesc: e.desc || "",
          imgdata: e.imgdata,
          extParam: e.extParam
        }
      }, t, "3.6.0")
    }, closeShareIcon: function (e) {
      o.default.version() > "3.2.0" ? o.default.callNative({
        reqid: "",
        type: "close_share"
      }, e) : "function" == typeof e && e({type: "-1", msg: "请先升级到3.2.0以上版本"})
    }, sharePhoto: function (e, t) {
      o.default.callNative({
        reqid: "",
        type: "share_single",
        data: {
          id: e.appId ? e.appId : "",
          sharetype: e.type ? e.type : "0",
          imgshare: "1",
          imageUrl: e.icon,
          url: "",
          title: "",
          shareDesc: "",
          extParam: e.extParam
        }
      }, t)
    }, shareSinglePlatform: function (e, t) {
      o.default.callNative({
        reqid: "",
        type: "share_single",
        data: {
          id: e.appId ? e.appId : "",
          sharetype: e.type ? e.type : "0",
          imgshare: "0",
          imageUrl: e.icon,
          url: e.shareUrl,
          title: e.title,
          shareDesc: e.desc,
          extParam: e.extParam
        }
      }, t)
    }, shareBase64Photo: function (e, t) {
      o.default.callNative({
        reqid: "",
        type: "share_single",
        data: {
          id: e.appId ? e.appId : "",
          sharetype: e.type ? e.type : "0",
          imgdata: e.imgdata,
          imgshare: "2",
          imageUrl: "",
          url: "",
          title: "",
          shareDesc: "",
          extParam: e.extParam
        }
      }, t)
    }, shareFile: function (e, t, a, i) {
      d.default.call({
        reqid: "",
        type: "shareDocument",
        data: {docName: e, docType: t, docUrl: window.btoa(a)}
      }, i, "4.1.0")
    }
  }
}, function (e, t, a) {
  "use strict";

  function i(e) {
    return e && e.__esModule ? e : {default: e}
  }

  var n = a(0), o = i(n), l = a(3), d = (i(l), a(1)), r = i(d);
  e.exports = {
    isICity: function () {
      return navigator.userAgent.toLowerCase().indexOf("inspur icity") > -1
    }, isHeChengZaiXian: function () {
      return navigator.userAgent.toLowerCase().indexOf("inspur icity qiqihaer") > -1
    }, isShiJiaZhuangYiDianTong: function () {
      return navigator.userAgent.toLowerCase().indexOf("inspur icity shijiazhuang") > -1
    }, checkNoticePermission: function (e) {
      r.default.call({reqid: "", type: "notice_permission"}, e, "4.1.0")
    }, openFile: function (e) {
      e && e.url && e.title && (e.type || (e.type = "pdf"), r.default.call({
        reqid: "",
        type: "openfile",
        data: e
      }, void 0, "4.3.0"))
    }, openMsgSettings: function (e) {
      o.default.callNative({reqid: "", type: "dialog", data: e}, void 0)
    }, openApp: function (e, t) {
      o.default.callNative({reqid: "", type: "scheme", data: e}, t)
    }, ringUp: function (e, t) {
      r.default.call({type: "telephone", data: e}, t, "3.5.0")
    }, sendSMS: function (e, t) {
      o.default.callNative({reqid: "", type: "message", data: e}, function (e) {
        t(e)
      })
    }, openApplet: function (e, t) {
      r.default.call({type: "applet", data: e}, t, "3.0.0")
    }, openMall: function (e, t) {
      r.default.call({type: "openGoods", data: e}, t, "3.0.0")
    }, getNetWorkInfo: function (e) {
      r.default.call({type: "reqdata", data: {type: "network_info"}}, e, "3.0.0")
    }, getCtidDownloadParams: function (e, t) {
      r.default.call({type: "get_ctid_download_params", data: e}, t, "4.4.0")
    }, BHBankSdkFunction: function (e) {
      r.default.call({type: "BHBankSdk", data: e}, "4.4.0")
    }
  }
}, function (e, t, a) {
  "use strict";

  function i(e) {
    return e && e.__esModule ? e : {default: e}
  }

  var n = a(0), o = i(n), l = a(3);
  i(l);
  e.exports = {
    getVersion: function () {
      return o.default.version()
    }, getCityCode: function () {
      return o.default.getCityCode()
    }, getOpenToken: function (e) {
      o.default.callNative({reqid: "", type: "open_token"}, e)
    }, getOpenId: function (e) {
      o.default.callNative({reqid: "", type: "open_id"}, e)
    }
  }
}, function (e, t, a) {
  "use strict";

  function i(e) {
    return e && e.__esModule ? e : {default: e}
  }

  var n = a(0), o = i(n), l = a(1), d = i(l);
  e.exports = {
    getData: function (e, t) {
      o.default.callNative({reqid: "", type: "reqdata", data: e}, t)
    }, saveCalendar: function (e, t) {
      o.default.callNative({
        reqid: "",
        type: "scheduleNotice",
        data: {startDate: e.startDate, endDate: e.endDate, noticeTime: e.noticeTime, message: e.message}
      }, t)
    }, putItem: function (e, t, a) {
      o.default.callNative({type: "sqlite", data: {type: "put", key: e, value: t}}, a)
    }, getItem: function (e, t) {
      o.default.callNative({type: "sqlite", data: {type: "get", key: e}}, t)
    }, delItem: function (e, t) {
      o.default.callNative({type: "sqlite", data: {type: "delete", key: e}}, t)
    }, getAllItems: function (e) {
      d.default.call({type: "sqlite", data: {type: "getall"}}, e, "3.5.0")
    }
  }
}, function (e, t, a) {
  "use strict";
  var i = a(0), n = function (e) {
    return e && e.__esModule ? e : {default: e}
  }(i);
  e.exports = {
    http: function (e, t, a) {
      e.useCache ? this.httpPrimary("dateCache", e, t, a) : this.httpPrimary("WebHTTPRequest", e, t, a)
    }, httpPrimary: function (e, t, a, i) {
      var o = t.url;
      -1 == o.indexOf("https:") && -1 == o.indexOf("http:") && (o = "https:" + o), n.default.callNative({
        reqid: "",
        type: e,
        data: {
          isPost: t.type && "post" == t.type.toLowerCase() ? "1" : "0",
          url: o,
          paraDic: t.body,
          options: t.options || {}
        }
      }, function (e) {
        console.log("jsbridge http source= " + e.source);
        var t = "string" == typeof e.body ? JSON.parse(e.body) : e.body;
        "1" == e.state ? a(t) : i(t)
      })
    }
  }
}, function (e, t, a) {
  "use strict";

  function i(e) {
    return e && e.__esModule ? e : {default: e}
  }

  var n = a(4), o = i(n), l = a(0), d = i(l);
  e.exports = {
    setSquareActivedListener: function (e) {
      d.default.squareActivedListener = e
    }, addResumeListener: function (e) {
      e && o.default.resumeList.push(e)
    }
  }
}, function (e, t, a) {
  "use strict";

  function i(e) {
    return e && e.__esModule ? e : {default: e}
  }

  var n = a(1), o = i(n), l = a(0), d = i(l);
  e.exports = {
    openNews: function (e, t) {
      d.default.callNative({reqid: "", type: "openNews", data: e}, t)
    }, openAtlasNews: function (e) {
      e && o.default.call({type: "news_tuji", data: {id: e}}, void 0, "4.1.1")
    }, openSpecialNews: function (e) {
      e && o.default.call({type: "news_special", data: {id: e}}, void 0, "4.1.1")
    }, openCommonNews: function (e) {
      e && o.default.call({type: "news_common", data: {id: e}}, void 0, "4.1.1")
    }
  }
}, function (e, t, a) {
  "use strict";

  function i(e) {
    return e && e.__esModule ? e : {default: e}
  }

  var n = a(0), o = i(n), l = a(1), d = i(l);
  e.exports = {
    openBusCode: function (e) {
      r("openBusCode", e)
    }, openBankCard: function (e) {
      r("openBankCard", e)
    }, authorizeColorBus: function (e) {
      r("authorizeColorBus", e)
    }, openFeedback: function () {
      o.default.callNative({reqid: "", type: "feedback"}, void 0)
    }, openAIHelper: function () {
      o.default.callNative({reqid: "", type: "aihelper"}, void 0)
    }, openAIHelperFeedBack: function (e) {
      o.default.callNative({reqid: "", type: "gowrite_aihelper", data: {source: e || ""}}, void 0)
    }, isSupportOpenWallet: function () {
      return o.default.user.version >= "2.8.0"
    }, openWallet: function (e) {
      o.default.callNative({reqid: "", type: "wallet"}, e)
    }, navigate: function (e, t) {
      var a = e.longitude ? e.longitude : "0.0", i = e.latitude ? e.latitude : "0.0", n = e.address ? e.address : "",
          l = e.region ? e.region : o.default.user.city;
      o.default.callNative({reqid: "", type: "navigator", data: {longitude: a, latitude: i, address: n, region: l}}, t)
    }, openMicroApp: function (e, t) {
      o.default.callNative({reqid: "", type: "openApp", data: e}, t)
    }, openMicroPage: function (e, t) {
      o.default.callNative({reqid: "", type: "openPage", data: e}, t)
    }, openMsgSettings: function (e) {
      o.default.callNative({reqid: "", type: "dialog", data: e}, void 0)
    }, openWebView: function (e, t) {
      d.default.call({type: "openWebView", data: e}, t, "3.5.0")
    }, selectAddress: function (e) {
      d.default.call({type: "openUserAddress", data: {}}, e, "3.5.0")
    }, openShop: function () {
      d.default.call({type: "N_point", data: {}}, void 0, "3.7.0")
    }, openMapSite: function (e) {
      d.default.call({type: "mapsite", data: e}, void 0, "3.0.0")
    }, openUserProfile: function (e) {
      d.default.call({type: "gotopersoninfo", data: {}}, e, "3.0.0")
    }, openRealName: function (e) {
      d.default.call({type: "realnameed", data: {}}, e, "3.0.0")
    }, openICityApp: function () {
      var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "http://app.icity365.com";
      d.default.call({type: "openicity", data: {downloadurl: e}}, void 0, "4.1.0")
    }, openGovGatherPage: function () {
      d.default.call({type: "open_gov_gather", data: {}}, void 0, "4.2.1")
    }, updatePhoneNum: function (e) {
      o.default.callNative({reqid: "", type: "changephone", data: ""}, e)
    }, openQLBankLoan: function (e, t) {
      o.default.version() >= "3.4.0" ? o.default.callNative({
        reqid: "",
        type: "QiluBankApplyForLoan",
        data: e
      }, t) : "function" == typeof t && t({type: "-1", msg: "请先升级到3.4.0及以上版本"})
    }, openOCR4IdCard: function (e, t) {
      d.default.call({type: "WebType_IdCardOcr", data: e}, t, "3.0.0")
    }, openScan: function (e, t) {
      o.default.callNative({reqid: "", type: "scan", data: e || {}}, t)
    }, openOCR: function (e) {
      o.default.callNative({reqid: "", type: "ocr", data: {}}, e)
    }, scanCard4Minsheng: function (e) {
      o.default.callNative({reqid: "", type: "scanBankCard", data: ""}, e)
    }, scanCardId: function (e, t) {
      o.default.callNative({reqid: "", type: e, data: ""}, t)
    }, CCBBankPay: function (e, t) {
      o.default.callNative({type: "CCBBankForPay", data: {orderUrl: e}}, t, "4.1.0")
    }, openIfly: function (e, t) {
      o.default.callNative({reqid: "", type: "iflySDK", data: e || {type: "start"}}, t)
    }
  };
  var r = function (e, t) {
    d.default.call({type: "busCode", data: {type: e}}, t, "4.3.1")
  }
}, function (e, t, a) {
  "use strict";
  var i = a(0), n = function (e) {
    return e && e.__esModule ? e : {default: e}
  }(i);
  e.exports = {
    cgspRealAuth: function (e) {
      n.default.callNative({reqid: "", type: "cgsp-real-auth", data: {}}, function (t) {
        "function" == typeof e && e(t)
      })
    }, cgspTicket: function (e) {
      n.default.callNative({reqid: "", type: "cgsp-ticket", data: {}}, function (t) {
        "function" == typeof e && e(t)
      })
    }, cgspLogin: function (e) {
      n.default.callNative({reqid: "", type: "cgsp-login", data: {}}, function (t) {
        "function" == typeof e && e(t)
      })
    }
  }
}, function (e, t, a) {
  "use strict";

  function i(e) {
    return e && e.__esModule ? e : {default: e}
  }

  var n = a(0), o = i(n), l = a(1), d = i(l);
  e.exports = {
    openTimeChat: function (e, t) {
      o.default.callNative({reqid: "", type: "friendChat", data: e}, function (e) {
        "function" == typeof t && t(e)
      })
    }, openSocialProfile: function (e) {
      var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : function () {
      };
      /^1[3456789]\d{9}$/.test(e) || t(new Error("手机号不正确")), d.default.call({
        type: "friendDetail",
        data: {friendPhone: e}
      }, t, "3.0.0")
    }
  }
}, function (e, t, a) {
  "use strict";

  function i(e) {
    return e && e.__esModule ? e : {default: e}
  }

  var n = a(0), o = i(n), l = a(2), d = i(l), r = a(1), u = i(r);
  e.exports = {
    openGallery: function (e, t) {
      var a = e || 1;
      o.default.callNative({reqid: "", type: "photolib", data: {imgnum: "" + a}}, t)
    }, openCamera: function (e) {
      o.default.callNative({reqid: "", type: "cam", data: ""}, e)
    }, openVideo: function (e, t) {
      o.default.version() > "3.2.0" ? o.default.callNative({
        reqid: "",
        type: "openvideo",
        data: e
      }, t) : "function" == typeof t && t({error: {code: d.default.ERROR_CODE_UPGRADE, msg: "请先升级到3.2.0以上版本"}})
    }, cutAvatarWithCamera: function (e, t) {
      u.default.call({
        type: "cut_avatar",
        data: {type: "cam", scale: e.scale || "0.6", clippingState: e.clip || "1"}
      }, t, "3.0.0")
    }, cutAvatarWithGallery: function (e, t) {
      u.default.call({
        type: "cut_avatar",
        data: {type: "photolib", scale: e.scale || "0.6", clippingState: e.clip || "1"}
      }, t, "3.0.0")
    }, shortVideo: function (e, t) {
      u.default.call({type: "shortvideo", data: {duration: e.duration}}, t, "3.0.0")
    }, uploadVideo: function (e, t) {
      u.default.call({type: "uploadVideo", data: {maxVideoDuration: e}}, t, "4.1.0")
    }, savePhotoToGallery: function (e, t) {
      o.default.callNative({reqid: "", type: "savephoto", data: {imgdata: e.imgdata}}, t)
    }, saveUrlPhotoToGallery: function (e, t) {
      e && o.default.callNative({reqid: "", type: "saveUrlPhoto", data: {imgUrl: e}}, t)
    }
  }
}, function (e, t, a) {
  "use strict";

  function i(e) {
    return e && e.__esModule ? e : {default: e}
  }

  var n = a(0), o = i(n), l = a(2), d = i(l), r = a(1), u = i(r);
  e.exports = {
    isSupportNativeLoading: function () {
      return o.default.version() >= "2.4.5"
    }, showLoading: function () {
      o.default.callNative({reqid: "", type: "loading", data: {isShow: 1}}, void 0)
    }, hideLoading: function () {
      o.default.callNative({reqid: "", type: "loading", data: {isShow: 0}}, void 0)
    }, setTitle: function (e, t) {
      o.default.callNative({reqid: "", type: "webtitle", data: {title: e}}, t)
    }, setTitleBarButton: function (e, t) {
      u.default.call({reqid: "", type: "set_titlebar_btn", data: {icon: e}}, t, "4.1.0")
    }, closeWebView: function () {
      o.default.callNative({reqid: "", type: "close", data: {}}, void 0)
    }, openWebView: function (e, t) {
      o.default.version() >= "3.5.0" ? o.default.callNative({
        reqid: "",
        type: "openWebView",
        data: e
      }, t) : "function" == typeof t && t({error: {code: d.default.ERROR_CODE_UPGRADE, msg: "请先升级到3.4.0以上版本"}})
    }, hideTitleBar: function (e) {
      o.default.version() >= "3.5.0" ? o.default.callNative({
        reqid: "",
        type: "hideTitleBar",
        data: {}
      }, e) : "function" == typeof e && e({error: {code: d.default.ERROR_CODE_UPGRADE, msg: "请先升级到3.4.0以上版本"}})
    }, showSkeleton: function () {
      u.default.call({type: "show_skeleton", data: {}}, void 0, "4.1.0")
    }, hideSkeleton: function () {
      u.default.call({type: "hide_skeleton", data: {}}, void 0, "4.1.0")
    }, showStatusBar: function (e, t) {
      void 0 === e && (e = 1), u.default.call({
        type: "show_status_bar",
        data: {opacity: e, bgcolor: t || "#FFFFFF"}
      }, void 0, "4.3.1")
    }, hideStatusBar: function () {
      u.default.call({type: "hide_status_bar", data: {}}, void 0, "4.3.1")
    }, showBottomBar: function (e) {
      void 0 === e && (e = 1), u.default.call({type: "show_bottom_bar", data: {opacity: e}}, void 0, "4.3.1")
    }, hideBottomBar: function () {
      u.default.call({type: "hide_bottom_bar", data: {}}, void 0, "4.3.1")
    }, getSafeHeight: function (e) {
      u.default.call({type: "statusbar_safe_height"}, e, "4.3.1")
    }, setThemeColor: function (e) {
      u.default.call({type: "statusbar_theme_color", data: {theme: e}}, "4.3.1")
    }
  }
}, function (e, t, a) {
  "use strict";
  var i = a(0), n = function (e) {
    return e && e.__esModule ? e : {default: e}
  }(i);
  e.exports = {
    pay: function (e, t) {
      n.default.callNative({
        reqid: "",
        type: "WebType_iCityPay",
        data: {total_amount: e.total_amount, trade_no: e.trade_no}
      }, function (e) {
        t(e)
      })
    }, pay4traffic: function (e, t) {
      n.default.callNative({reqid: "", type: "WebType_TrafficPayment", data: e}, function (e) {
        t(e)
      })
    }, wxPay: function (e) {
      n.default.callNative({reqid: "", type: "WebType_iCityPay_WeChatPay", data: e})
    }
  }
}, function (e, t, a) {
  "use strict";
  var i = a(1), n = function (e) {
    return e && e.__esModule ? e : {default: e}
  }(i);
  e.exports = {
    openSocialCard: function (e) {
      n.default.call({type: "socialCard", data: {}}, e, "3.0.0")
    }, useSocialCard: function (e) {
      n.default.call({type: "useSocialCard", data: {}}, e, "3.0.0")
    }, checkSocialCard: function (e) {
      n.default.call({type: "socialCardVer", data: {}}, e, "3.0.0")
    }
  }
}, function (e, t, a) {
  "use strict";
  var i = a(0), n = function (e) {
    return e && e.__esModule ? e : {default: e}
  }(i);
  e.exports = {
    openCCBBankForPay: function (e, t) {
      n.default.callNative({reqid: "", type: "CCBBankForPay", data: e}, t)
    }
  }
}]);
